
#ifdef GL_ES
precision mediump float;
#endif

const float PI=3.1415926535;

uniform vec2 u_resolution;
uniform float u_time;

void main(){
    vec2 coord=gl_FragCoord.xy/u_resolution;
    
    float color=0.;
    color+= sin(coord.x*6.0+sin(u_time+coord.y*90.0+cos(coord.x*30.0+u_time*2.0)))*0.5;
    color+= cos(coord.x*3.0+cos(u_time+coord.y*60.0+sin(coord.x*20.0+u_time*2.0)))*0.3;
     
    gl_FragColor=vec4(color+coord.x,color+coord.y,color*.8,1.);
}